import Vue from 'vue'
import Router from 'vue-router'
import MainMenu from '@/pages/MainMenu'
import Agent from '@/pages/InfoChange/Agent'
import Cards from '@/pages/InfoChange/Cards'
import FormPage from '@/pages/InfoChange/FormPage'
import Contacts from '@/pages/InfoChange/Contacts'
import AddImage from '@/pages/InfoChange/AddImage'
import SubResult from '@/pages/InfoChange/SubResult'
import foreignCurrency from '@/pages/ForeignCurrency/ForeignCurrency'
import myOrders from '@/pages/order/MyOrders'
import orderDetail from '@/pages/order/OrderDetail'
import ShowDetail from '@/pages/order/ShowDetail'
import EvaService from '@/pages/order/EvaService'
import NetStep from '@/pages/order/NetStep'
import LargeCash from '@/pages/largeCash/LargeCash'
import successInfo from '@/pages/largeCash/successInfo'
import myOrderList from '@/pages/largeCash/myOrderList'
import personalCurrencyDetail from '@/pages/largeCash/personalCurrencyDetail'
import publicCurrencyDetail from '@/pages/largeCash/publicCurrencyDetail'
import evaluate from '@/pages/largeCash/evaluate'
import orderList from '@/pages/largeCash/orderList'

//对公开户
import preApplication from '@/pages/publicOpenaccount/preApplication'
import MyOrder from '@/pages/InfoChange/MyOrder'
import OrderInfo from '@/pages/InfoChange/OrderInfo'
import BookBank from '@/pages/InfoChange/BookBank'

//大额取现
import bigCurrency from '@/pages/bigCurrency/BigCurrency'
import subscribeResult from '@/pages/bigCurrency/subscribeResult'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MainMenu',
      component: MainMenu,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "主界面"}
    },
    {
      path: '/agent',
      name: 'Agent',
      component: Agent,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "对公信息变更"}
    },
    {
      path: '/cards',
      name: 'Cards',
      component: Cards,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "对公信息变更"}
    },
    {
      path: '/formpage',
      name: 'FormPage',
      component: FormPage,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "对公信息变更"}
    },
    {
      path: '/contacts',
      name: 'Contacts',
      component: Contacts,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "对公信息变更"}
    },
    {
      path: '/addimage',
      name: 'AddImage',
      component: AddImage,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "上传影像"}
    },
    {
      path: '/subresult',
      name: 'SubResult',
      component: SubResult,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "处理结果"}
    },
    {
      path: '/foreignCurrency',
      name: 'ForeignCurrency',
      component: foreignCurrency,
      meta: {requiresAuth: false, supportedBrowserUA: ["MicroMessenger"], title: "外汇取现"}
    },
    {
      path: '/preApplication',
      component: preApplication,
      name: 'preApplication',
      meta: { requiresAuth: false, supportedBrowserUA: ['MicroMessenger'],title:"预申请界面"}
    },
    {
      path: '/bigCurrency',
      component: bigCurrency,
      name: 'BigCurrency',
      meta: { requiresAuth: false, supportedBrowserUA: ['MicroMessenger'],title:"大额取现"}
    },
    {
      path: '/subscribeResult',
      component: subscribeResult,
      name: 'SubscribeResult',
      meta: { requiresAuth: false, supportedBrowserUA: ['MicroMessenger'],title:"大额取现"}
    },
    {
      path: '/MyOrder',
      component: MyOrder,
      name: 'MyOrder',
      meta: { requiresAuth: false, supportedBrowserUA: ['MicroMessenger'],title:"预申请界面"}
    },
    {
      path: '/OrderInfo',
      component: OrderInfo,
      name: 'OrderInfo',
      meta: { requiresAuth: false, supportedBrowserUA: ['MicroMessenger'],title:"预申请界面"}
    },
    {
      path: '/BookBank',
      component: BookBank,
      name: 'BookBank',
      meta: { requiresAuth: false, supportedBrowserUA: ['MicroMessenger'],title:"预申请界面"}
    }
  ]
})
